package main

import (
	"dha/pub"
	"dha/router"
	"dha/setup"

	"github.com/gin-gonic/gin"
)

func main() {
	setup.Setup()

	if setup.RunCmdEnd() {
		return
	}

	r := gin.Default()
	router.RegisterRouter(r)

	r.Run(pub.Conf().ServerPort)
}
